/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author lzw
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface Followrecord extends BasicModel<Followrecord> {
  userId?: string; // 员工id
  userrName?: string; // 负责人名称
  years?: string; // 年份
  yearsNumber?: number; // 年度总跟进量
  one?: number; // 1月跟进量
  two?: number; // 2月跟进量
  three?: number; // 3月跟进量
  four?: number; // 4月跟进量
  five?: number; // 5月跟进量
  six?: number; // 6月跟进量
  seven?: number; // 7月跟进量
  eight?: number; // 8月跟进量
  nine?: number; // 9月跟进量
  ten?: number; // 10月跟进量
  eleven?: number; // 11月跟进量
  twelve?: number; // 12月跟进量
  dayNumber?: number; // 当日跟进量
}

export const followrecordList = (params?: Followrecord | any) =>
  defHttp.get<Followrecord>({ url: adminPath + '/operating/followrecord/list', params });

export const followrecordListData = (params?: Followrecord | any) =>
  defHttp.post<Page<Followrecord>>({ url: adminPath + '/operating/followrecord/listData', params });

export const followrecordForm = (params?: Followrecord | any) =>
  defHttp.get<Followrecord>({ url: adminPath + '/operating/followrecord/form', params });

export const followrecordSave = (params?: any, data?: Followrecord | any) =>
  defHttp.postJson<Followrecord>({ url: adminPath + '/operating/followrecord/save', params, data });

export const followrecordDelete = (params?: Followrecord | any) =>
  defHttp.get<Followrecord>({ url: adminPath + '/operating/followrecord/delete', params });
